<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>圣杯布局</title>
	<style type="text/css">
		*{
			padding: 0;
			margin: 0;
		}
		
		body{
			min-width: 550px;
		}
		
		.header,.footer{
			height: 50px;
			background-color: #DDDDDD;
			clear: both;
		}
		
		.center{
			width: 100%;
			background-color: #FF0000;
			float: left;
		}
		.left{
			width: 200px;
			background-color: green;
			position: relative;
			right: 200px;
			margin-left: -100%;
			float: left;
		}
		.right{
			width: 150px;
			background-color: pink;
			margin-right: -150px;/* 右边栏自身的宽度 */
			float: left;
		}
		
		.container{
			padding: 0 150px 0 200px;
		}
	</style>
</head>
<body>
	<div class="header"></div>
	<div class="container">
		<div class="center">111</div>
		<div class="left">222</div>
		<div class="right">333</div>
	</div>
	<div class="footer"></div>
</body>
</html>